Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent goroutine leak in oidc client #11974

Merged
merged 7 commits into from
Apr 19, 2022
Merged

Conversation

rosstimothy
Copy link
Contributor

@rosstimothy rosstimothy commented Apr 14, 2022

Adds the stop channel returned from client.SyncProviderConfig to
the oidcClient and closes the channel when the client is cleaned
up. This causes the sync goroutine being run by go-oidc to end.

Fixes #11950

Adds the stop channel returned from client.SyncProviderConfig to
the oidcClient and closes the channel when the client is cleaned
up. This causes the sync goroutine being run by go-oidc to end.
lib/auth/oidc.go Outdated Show resolved Hide resolved
@rosstimothy rosstimothy marked this pull request as ready for review April 14, 2022 21:21
@github-actions github-actions bot requested review from codingllama and lxea April 14, 2022 21:21
lib/auth/oidc.go Outdated Show resolved Hide resolved
@zmb3
Copy link
Collaborator

zmb3 commented Apr 19, 2022

@rosstimothy think we can get this merged and backported by EOD tomorrow? It would be great if we can include this in 9.1.0.

@rosstimothy
Copy link
Contributor Author

@rosstimothy think we can get this merged and backported by EOD tomorrow? It would be great if we can include this in 9.1.0.

I will do my best to get it in by then. The CI gods may have other ideas

@rosstimothy rosstimothy enabled auto-merge (squash) April 19, 2022 16:44
@rosstimothy rosstimothy merged commit 73e6242 into master Apr 19, 2022
@rosstimothy rosstimothy deleted the tross/fix_oidc_goroutine_leak branch April 19, 2022 17:08
rosstimothy added a commit that referenced this pull request Apr 19, 2022
* Prevent goroutine leak in oidc client

Ensure that the goroutine spawned by client.SyncProviderConfig is
terminated either by the oidc connector being removed or the
server closing

(cherry picked from commit 73e6242)
rosstimothy added a commit that referenced this pull request Apr 19, 2022
* Prevent goroutine leak in oidc client

Ensure that the goroutine spawned by client.SyncProviderConfig is
terminated either by the oidc connector being removed or the
server closing

(cherry picked from commit 73e6242)
rosstimothy added a commit that referenced this pull request Apr 19, 2022
* Prevent goroutine leak in oidc client

Ensure that the goroutine spawned by client.SyncProviderConfig is
terminated either by the oidc connector being removed or the
server closing

(cherry picked from commit 73e6242)
@rosstimothy
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
branch/v7
branch/v8
branch/v9

Questions ?

Please refer to the Backport tool documentation

rosstimothy added a commit that referenced this pull request Apr 19, 2022
* Prevent goroutine leak in oidc client

Ensure that the goroutine spawned by client.SyncProviderConfig is
terminated either by the oidc connector being removed or the
server closing

(cherry picked from commit 73e6242)
rosstimothy added a commit that referenced this pull request Apr 19, 2022
* Prevent goroutine leak in oidc client

Ensure that the goroutine spawned by client.SyncProviderConfig is
terminated either by the oidc connector being removed or the
server closing

(cherry picked from commit 73e6242)
rosstimothy added a commit that referenced this pull request Apr 19, 2022
* Prevent goroutine leak in oidc client

Ensure that the goroutine spawned by client.SyncProviderConfig is
terminated either by the oidc connector being removed or the
server closing

(cherry picked from commit 73e6242)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OIDC goroutine leak
4 participants